// ignore_for_file: depend_on_referenced_packages

import 'package:flutter_2b_client/model/IntIdAndName.dart';
import 'package:retrofit/http.dart';
import 'package:dio/dio.dart';

import 'Initial.dart';

part 'FactoryApi.g.dart';

@RestApi()
abstract class FactoryApi {
  factory FactoryApi(Dio dio, {String baseUrl}) = _FactoryApi;

  @GET("factories")
  Future<List<IntIdAndName>> getAllFactories();
}

FactoryApi factoryApi = FactoryApi(dio, baseUrl: baseUrl);